package msg

import (
	"database/sql"
	"time"
)

type GfyxMessageInboxPo struct {
	Id           int64        `json:"id" db:"id"`
	MessageType  string       `json:"message_type" db:"message_type"`
	Title        string       `json:"title" db:"title"`
	Content      string       `json:"content" db:"content"`
	SenderId     int64        `json:"sender_id" db:"sender_id"`
	ReceiverId   int64        `json:"receiver_id" db:"receiver_id"`
	IsReaded     int          `json:"is_readed" db:"is_readed"`
	ReceivedTime time.Time    `json:"received_time" db:"received_time"`
	ReadedTime   sql.NullTime `json:"readed_time" db:"readed_time"`
	Link         string       `json:"link" db:"link"`
	CreatedBy    string       `json:"created_by" db:"created_by"`
	CreatedOn    time.Time    `json:"created_on" db:"created_on"`
	ModifiedBy   string       `json:"modified_by" db:"modified_by"`
	ModifiedOn   time.Time    `json:"modified_on" db:"modified_on"`
	IsDeleted    int          `json:"is_deleted" db:"is_deleted"`
}

func (p GfyxMessageInboxPo) TableName() string {
	return "gfyx_message_inbox"
}
